import React,{lazy} from "react";
import {Navigate} from 'react-router-dom'
import type { RouteObject } from "react-router-dom"

//懒加载
const Play=lazy(()=>import('@/pages/Play'))

const routes:RouteObject[]=[
    {
        path:'/',
        element:<Navigate to="/play"/>
    },
    {
        path:'/play',
        element:<Play/>
    }
]

export default routes